gtktreeselection: Fix potential NULL pointer dereferences
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 20 Nov 2013 17:38:01 +0000 (17:38 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 9 Mar 2015 13:41:37 +0000 (13:41 +0000)
commit968780d8da4a7a1d30ca1e17faec55de2e528390
treeb76e46ec9036e1fcdaa8b41a006d219f51683650
parent4fc6880d8308b5ff69b72c23920fed75cf3f2661
gtktreeselection: Fix potential NULL pointer dereferences

_gtk_rbtree_first() can potentially return NULL if the RB tree is empty,
which would result in NULL pointer dereferences in the GtkTreeSelection
code. Gracefully handle them.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760
gtk/gtktreeselection.c